package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @author
 */
@Data
public class SlopeSubscribeExport {

    /**
     * 序号
     */
    @Excel(name = "序号")
    private Long seq;

    /**
     * 推送内容
     */
    @Excel(name = "推送内容")
    private String message;

    /**
     * 推送人数
     */
    @Excel(name = "推送人数")
    private String sendNum;

    /**
     * 具体推送人
     */
    @Excel(name = "具体推送人")
    private String sendPeople;

    /**
     * 推送时间
     */
    @Excel(name = "推送时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    public void setMessage(String message) {
        this.message = new ReplaceIllegalChar().replace(message);
    }

    public void setSendNum(String sendNum) {
        this.sendNum = new ReplaceIllegalChar().replace(sendNum);
    }

    public void setSendPeople(String sendPeople) {
        this.sendPeople = new ReplaceIllegalChar().replace(sendPeople);
    }
}
